
fzy = require('fzy')
local vimgrep_arguments = {
    'rg',
    '--no-heading',
    '-inH',
    '--trim',
    '--column',
    '.'
--    '-tcpp -tc -tgo -tasm -tsh -tobjc -tobjcpp -tyaml -tmd -tcmake -tasm -tbazel -tconfig -tpy -tjava -tkotlin -tjson -groovy -tts -ttxt',
}

local vimfind_arguments = {
    'fd',
    '-i',
    '-d 8'
}


function fzy_grep() 
    return string.format(':lua fzy.execute(\'%s\', fzy.sinks.edit_live_grep)<CR>', table.concat(vimgrep_arguments, ' '))
end

function fzy_find()
    return string.format(':lua fzy.execute(\'%s\', fzy.sinks.edit_file)<CR>', table.concat(vimfind_arguments, ' '))
end
